package com.ruoyi.system.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 学生信息对象 Student
 *
 * @author ruoyi
 * @date 2022-04-27
 */
public class Student extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    private Integer sid;

    /**
     * 学号
     */
    @Excel(name = "学号")
    private String sno;

    /**
     * 姓名
     */
    @Excel(name = "姓名")
    private String sname;

    /**
     * 出生日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "出生日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date sbrithday;

    /**
     * 性别
     */
    @Excel(name = "性别")
    private String ssex;

    public Integer getSid() {
        return sid;
    }

    public void setSid(Integer sid) {
        this.sid = sid;
    }

    public String getSno() {
        return sno;
    }

    public void setSno(String sno) {
        this.sno = sno;
    }

    public String getSname() {
        return sname;
    }

    public void setSname(String sname) {
        this.sname = sname;
    }

    public Date getSbrithday() {
        return sbrithday;
    }

    public void setSbrithday(Date sbrithday) {
        this.sbrithday = sbrithday;
    }

    public String getSsex() {
        return ssex;
    }

    public void setSsex(String ssex) {
        this.ssex = ssex;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("sid", getSid())
                .append("sno", getSno())
                .append("sname", getSname())
                .append("sbrithday", getSbrithday())
                .append("ssex", getSsex())
                .toString();
    }
}
